<template>
    <customNavigationBar :title="urls[type - 1].title" />
    <web-view :src="urls[type - 1].url"></web-view>
</template>

<script setup lang="ts">
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';

const type = ref(null); //1 用户注册协议

const urls = [
    {
        url: 'https://api.yjbs.top/yjyf_yhzcxy.html',
        title: '用户注册协议'
    },
    {
        url: 'https://api.yjbs.top/yjyf_ysxy.html',
        title: '隐私协议'
    }
];
onLoad((e) => {
    type.value = e.type;
});
</script>

<style lang="scss" scoped></style>
